module.exports = {
    listColumnsObject: require('../computed/list-columns-object'),
    allColumns: require('../computed/all-columns'),
    templatesKeys: require('../computed/templates-keys'),
    opts: require('../computed/opts'),
    tableData: require('../computed/table-data'),
    storage: require('../computed/storage'),
    filterableColumns:require('../computed/filterable-columns'),
    datepickerColumns:require('../computed/datepicker-columns'),
    hasChildRow: require('../computed/has-child-row'),
    colspan: require('../computed/colspan'),
    hasGenericFilter:require('../computed/has-generic-filter'),
    perPageValues: require('../computed/per-page-values'),
    filtersCount: function() {
        return this.opts.filterByColumn ? Object.values(this.query).filter(val=>!!val).length : (!!this.query ? 1 : 0)
    },
    stateKey() {
        var key = this.name?this.name:this.id;
        return 'vuetables_' + key;
    },
    Page: function() {
      return this.page
    },
    tabIndex() {
        return this.opts.tabbable ? 0 : -1
    }
}

